package com.wenhuitec.sysui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;


import com.wenhuitec.sysui.R;
import com.wenhuitec.sysui.entity.Foods;

import java.util.ArrayList;
import java.util.List;

public class PickView extends LinearLayout {

    TextView diningCodeTv;
    TextView orderStatusTv;
    TextView makeStatusTv;
    TextView nameTv;
    FoodView foodView;
    private List<Foods> foods = new ArrayList<>();

    public PickView(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.view_pick, this, true);

        foods.add(new Foods("1-1", 1, "0.20"));
        foods.add(new Foods("1-2", 1, "0.01"));
        diningCodeTv = (TextView) findViewById(R.id.dining_text);
        foodView = (FoodView) findViewById(R.id.food_view);
        foodView.setFoods(foods);
    }

}
